<?php
$this->breadcrumbs=array(
	'College Types'=>array('admin'),
	'Manage',
);

$this->menu=array(
	//array('label'=>'List College Type','url'=>array('index')),
	array('label'=>'Create College Type','url'=>array('create')),
);

?>

<h1>Manage College Types</h1>





<?php $this->widget('bootstrap.widgets.TbGridView', array(
   'id'=>'aman-college-type-grid',
    'itemsCssClass' => 'table-bordered items',
    'dataProvider' => $model->search(),
    'columns'=>array(
        array(
           'class' => 'editable.EditableColumn',
           'name' => 'college_type',
           'headerHtmlOptions' => array('style' => 'width: 110px'),
           'editable' => array(    //editable section
                  //'apply'      => '$data->state_name != 4', //can't edit deleted users
                  'url'        => $this->createUrl('amanCollegeType/updateCollege'),
                  'placement'  => 'right',
              )               
        ),
        
         array(
            'class' => 'editable.EditableColumn',
            'name' => 'status',
            'headerHtmlOptions' => array('style' => 'width: 100px'),
            'editable' => array(
                'type' => 'select',
                 'url'=> $this->createUrl('amanCollegeType/updateCollege'),
                'placement' => 'right',
                'source' => $this->createUrl('amanCollegeType/status'),
//onsave event handler
                'onSave' => 'js: function(e, params) {
console && console.log("saved value: "+params.newValue);
}',
            )
        ),
      
      
         
         array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
        ),
         
   
    ),
)); 
?>